extends "../xuefeng-3/xuefeng-3.gd"


var baseId = ""
var upText1 = "吴之雪风持续时间+4秒"
var upText2 = "所受技能伤害降低20%"
func _extInit():
	._extInit()
	lv = 4             #等级的设置
	addSkill("每秒赋予周围2格敌人2层<霜冻>，受到技能伤害时，自己与绑定队友各恢复15%血量", "冬之精灵")

var s4Flag = true
func _upS():
	._upS()
	s4Flag = true
	for i in getCellChas(cell, 2, 1):
		castBuff(i, buff.b_shuangDong.new(2))

func _onHurt(atkInfo):
	._onHurt(atkInfo)
	if atkInfo.atkType == sys.AtkType.SKILL and s4Flag:
		s4Flag = false
		healCha(self, att.maxHp*0.15)
		if ally != null and not ally.isDeath:
			healCha(ally, ally.att.maxHp*0.15)
		if upgraded == 2:
			atkInfo.hurtVal *= 0.8	

func upgrade():
	.upgrade()
	if upgraded == 1:
		p2 = 12